//
//  BaseTC.h
//  YLMainStructure
//
//  Created by Apple on 2017/9/27.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTabbar.h"

@interface BaseTC : UITabBarController


/**
  子类自定义tabbar
 */
@property (nonatomic, strong)  BaseTabbar *baseTabbar;

/**
 获取单例对象
 
 @return BaseTC
 */
+ (instancetype)shareInstance;


/**
 取消单例
 */
+ (void)restshareInstance;


/**
 添加子控制器的block
 
 @param addVCBlock 添加代码块
 
 @return TabBarController
 */
+ (instancetype)tabBarControllerWithAddChildVCsBlock: (void(^)(BaseTC *tabBarC))addVCBlock;

/**
 添加子控制器
 
 @param vc                子控制器
 @param normalImageName   普通状态下图片
 @param selectedImageName 选中图片
 @param title   标题，可以nil
 @param isRequired        是否需要包装导航控制器
 */
- (void)addChildVC: (UIViewController *)vc normalImageName: (NSString *)normalImageName selectedImageName:(NSString *)selectedImageName  title:(NSString *)title isRequiredNavController: (BOOL)isRequired;
@end
